package com.smzd.ccms.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.smzd.ccms.domain.Site;
import com.smzd.ccms.mappers.SiteMapper;
import com.smzd.core.dao.AbstractDao;
import com.smzd.core.mappers.IMapper;

@Component
public class SiteDao extends AbstractDao<Site> {
	@Autowired
	private SiteMapper mapper;

	@Override
	protected IMapper<Site> getMapper() {
		return mapper;
	}

	public List<Site> getAllSites() {
		return mapper.getAllSites();
	}

	public Site getSiteByOwnerId(int meetingId) {
		return mapper.getSiteByOwnerId(meetingId);
	}

	public Site getSiteByPath(String siteStr) {
		return mapper.getSiteByPath(siteStr);
	}
}